package fall2014.cs343.lab2.messagequeue;

/**
 * Producer - consuming messages from message queue 
 *                
 * @author Ruxin Dai
 * @version 1.0
 *
 */

public class Consumer extends Thread{

	//the queue from which consumer get messages
	private MessageQueue queue = null;  
	 
	/**
	 * Construct a consumer by initializing a message queue
	 * @param queue
	 */
	public Consumer(MessageQueue queue){
		this.queue = queue;
		}

	/**
	 * consume messages from message queue
	 */
	public void run(){
	 
		/*
		 * To-do: get out 10 messages from the queue. For each message, 
		 *        print out "Consumer downloads" + message + " from the queue."
		 */
		
	 }

} //end Consumer class
